import requests
url='http://www.baidu.com'
response=requests.get(url)
response.encoding='utf-8'
print(type(response))
# print(response.text)
# 返回二进制数据
print(response.content)